<template>
  <div id="app">
    <el-container>
      <el-header id="main-header">
        <div class="logo">数据处理系统</div>
        <div class="menu">
          <el-menu class="el-menu-demo" mode="horizontal">
            <el-menu-item index="1">
              <!-- 支持多个资源库 -->
              <router-link to="/repo">资源库</router-link>
            </el-menu-item>

            <!-- 管理集群中的节点 -->
            <el-menu-item index="2">
              <router-link to="/cluster">集群</router-link>
            </el-menu-item>

            <!-- 当运行后，进入到运行区 -->
            <el-menu-item index="3">
              <router-link to="/runManage">运行管理</router-link>
            </el-menu-item>

            <!-- 配置保存运行时信息的数据库等 -->
            <el-menu-item index="4">
              <router-link to="/config">配置</router-link>
            </el-menu-item>
            <el-menu-item index="5"><a href="https://www.ele.me" target="_blank">帮助</a></el-menu-item>
          </el-menu>
        </div>
      </el-header>
      <el-main id="page-main" style="padding-top:0px"><router-view></router-view></el-main>
    </el-container>
  </div>
</template> 

<script>
export default {
  name: "app",
  data() {
    return {
      msg: "Welcome to Your Vue.js App"
    };
  }
};
</script>

<style>
#app {
  height: 100%;
}
html {
  height: 100%;
}
body {
  height: 100%;
  margin: 0px;
}
.el-header#main-header {
  text-align: center;
  line-height: 60px;
  display: flex;
  justify-content: space-between;
}
.el-main#page-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  line-height: calc(100% - 60px);
}

#app > .el-container {
  height: 100%;
}
#page-main{
  display: flex;
}
</style>
